This page is part of the FHIR Specification (v1.6.0: STU 3 Ballot 4). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R4 R3 R2
This profile is marked as a draft.
The official URL for this profile is:
http://hl7.org/fhir/StructureDefinition/ehrsrle-provenance
Defines the elements to be supported within the Provenance resource in order to conform with the Electronic Health Record System Functional Model Record Lifecycle Event standard
This profile was published on Fri, Jan 31, 2014 00:00+1100 as a draft by Health Level Seven International (Electronic Health Record).
Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.
This structure is derived from Provenance.
This structure is derived from Provenance.
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Provenance | 0..* | |||
target | S | 1..* | Reference(Resource) | |
period | S | 0..1 | Period | |
recorded | S | 1..1 | instant | |
reason | S | 0..* | Coding | Binding: PurposeOfUse (extensible) |
activity | S | 0..1 | Coding | |
location | S | 0..1 | Reference(Location) | |
policy | S | 0..* | uri | |
agent | S | 1..* | BackboneElement | |
actor | S | 0..1 | Reference(Practitioner | RelatedPerson | Patient | Device | Organization) | |
userId | S | 0..1 | Identifier | |
signature | S | 0..* | Signature | |
Documentation for this format |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Provenance | I | 0..* | Who, What, When for a set of resources dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource | |
id | ∑ | 0..1 | id | Logical id of this artifact |
meta | ∑ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!∑ | 0..1 | uri | A set of rules under which this content was created |
language | 0..1 | code | Language of the resource content Binding: Common Languages (extensible) | |
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
contained | 0..* | Resource | Contained, inline Resources | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
target | S∑ | 1..* | Reference(Resource) | Target Reference(s) (usually version specific) |
period | S∑ | 0..1 | Period | When the activity occurred |
recorded | S∑ | 1..1 | instant | When the activity was recorded / updated |
reason | S∑ | 0..* | Coding | Reason the activity is occurring Binding: PurposeOfUse (extensible) |
activity | S∑ | 0..1 | Coding | Activity that occurred Binding: ProvenanceEventCurrentState (extensible) |
location | S∑ | 0..1 | Reference(Location) | Where the activity occurred, if relevant |
policy | S∑ | 0..* | uri | Policy or plan the activity was defined by |
agent | S∑ | 1..* | BackboneElement | Actor involved |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
role | ∑ | 1..1 | Coding | What the agents involvement was Binding: ProvenanceParticipantRole (extensible) |
actor | S∑ | 0..1 | Reference(Practitioner | RelatedPerson | Patient | Device | Organization) | Individual, device or organization playing role |
userId | S∑ | 0..1 | Identifier | Authorization-system identifier for the agent |
relatedAgent | ∑ | 0..* | BackboneElement | Track delegation between agents |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
type | ∑ | 1..1 | CodeableConcept | Type of relationship between agents Binding: v3 Code System RoleLinkType (example) |
target | ∑ | 1..1 | uri | Reference to other agent in this resource by identifier |
entity | ∑ | 0..* | BackboneElement | An entity used in this activity |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
role | ∑ | 1..1 | code | derivation | revision | quotation | source | removal Binding: ProvenanceEntityRole (required) |
type | ∑ | 1..1 | Coding | The type of resource in this entity Binding: ResourceType (extensible) |
reference | ∑ | 1..1 | uri | Identity of entity |
display | ∑ | 0..1 | string | Human description of entity |
agent | ∑ | 0..* | Unknown reference to #Provenance:ehrsrle-provenance.agent Entity is attributed to this agent | |
signature | S∑ | 0..* | Signature | Signature on target |
Documentation for this format |
todo
This structure is derived from Provenance.
Differential View
This structure is derived from Provenance.
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Provenance | 0..* | |||
target | S | 1..* | Reference(Resource) | |
period | S | 0..1 | Period | |
recorded | S | 1..1 | instant | |
reason | S | 0..* | Coding | Binding: PurposeOfUse (extensible) |
activity | S | 0..1 | Coding | |
location | S | 0..1 | Reference(Location) | |
policy | S | 0..* | uri | |
agent | S | 1..* | BackboneElement | |
actor | S | 0..1 | Reference(Practitioner | RelatedPerson | Patient | Device | Organization) | |
userId | S | 0..1 | Identifier | |
signature | S | 0..* | Signature | |
Documentation for this format |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Provenance | I | 0..* | Who, What, When for a set of resources dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource | |
id | ∑ | 0..1 | id | Logical id of this artifact |
meta | ∑ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!∑ | 0..1 | uri | A set of rules under which this content was created |
language | 0..1 | code | Language of the resource content Binding: Common Languages (extensible) | |
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
contained | 0..* | Resource | Contained, inline Resources | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
target | S∑ | 1..* | Reference(Resource) | Target Reference(s) (usually version specific) |
period | S∑ | 0..1 | Period | When the activity occurred |
recorded | S∑ | 1..1 | instant | When the activity was recorded / updated |
reason | S∑ | 0..* | Coding | Reason the activity is occurring Binding: PurposeOfUse (extensible) |
activity | S∑ | 0..1 | Coding | Activity that occurred Binding: ProvenanceEventCurrentState (extensible) |
location | S∑ | 0..1 | Reference(Location) | Where the activity occurred, if relevant |
policy | S∑ | 0..* | uri | Policy or plan the activity was defined by |
agent | S∑ | 1..* | BackboneElement | Actor involved |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
role | ∑ | 1..1 | Coding | What the agents involvement was Binding: ProvenanceParticipantRole (extensible) |
actor | S∑ | 0..1 | Reference(Practitioner | RelatedPerson | Patient | Device | Organization) | Individual, device or organization playing role |
userId | S∑ | 0..1 | Identifier | Authorization-system identifier for the agent |
relatedAgent | ∑ | 0..* | BackboneElement | Track delegation between agents |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
type | ∑ | 1..1 | CodeableConcept | Type of relationship between agents Binding: v3 Code System RoleLinkType (example) |
target | ∑ | 1..1 | uri | Reference to other agent in this resource by identifier |
entity | ∑ | 0..* | BackboneElement | An entity used in this activity |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
role | ∑ | 1..1 | code | derivation | revision | quotation | source | removal Binding: ProvenanceEntityRole (required) |
type | ∑ | 1..1 | Coding | The type of resource in this entity Binding: ResourceType (extensible) |
reference | ∑ | 1..1 | uri | Identity of entity |
display | ∑ | 0..1 | string | Human description of entity |
agent | ∑ | 0..* | Unknown reference to #Provenance:ehrsrle-provenance.agent Entity is attributed to this agent | |
signature | S∑ | 0..* | Signature | Signature on target |
Documentation for this format |
XML Template
JSON Template
todo
Other representations of profile: Schematron
Path | Name | Conformance | ValueSet |
Provenance.language | Common Languages | extensible | Common Languages |
Provenance.reason | PurposeOfUse | extensible | PurposeOfUse |
Provenance.activity | ProvenanceEventCurrentState | extensible | ProvenanceEventCurrentState |
Provenance.agent.role | ProvenanceParticipantRole | extensible | ProvenanceParticipantRole |
Provenance.agent.relatedAgent.type | v3 Code System RoleLinkType | example | v3 Code System RoleLinkType |
Provenance.entity.role | ProvenanceEntityRole | required | ProvenanceEntityRole |
Provenance.entity.type | ResourceType | extensible | ResourceType |
Id | Path | Details | Requirements |
dom-2 | Provenance | If the resource is contained in another resource, it SHALL NOT contain nested Resources XPath: not(parent::f:contained and f:contained) | |
dom-1 | Provenance | If the resource is contained in another resource, it SHALL NOT contain any narrative XPath: not(parent::f:contained and f:text) | |
dom-4 | Provenance | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated XPath: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated)) | |
dom-3 | Provenance | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource XPath: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))])) |